# set project's name
PROJECT( TREE )
  
SET( GEOMETRIC_SRCS
  	geometric_main.cpp
	geometric_main_window.cpp
	geometric_problem.cpp
	convex_hull.cpp
	kdtree_build.cpp
	kdtree.cpp
	matching.cpp
	stable_matching.cpp
	#covertree.cpp
	#auction_matching_kdtree.cpp
	Log.cpp
)
SET( GEOMETRIC_MOC_HDRS
	geometric_main_window.h
)
SET( GEOMETRIC_UIS )
SET( GEOMETRIC_RCS )
  
QT4_ADD_RESOURCES( GEOMETRIC_RC_SRCS ${GEOMETRIC_RCS} )
QT4_WRAP_UI( GEOMETRIC_UI_HDRS ${GEOMETRIC_UIS} )
QT4_WRAP_CPP( GEOMETRIC_MOC_SRCS ${GEOMETRIC_MOC_HDRS} )
  
INCLUDE_DIRECTORIES( D:/Temp/armadillo-1.1.2/include ${Boost_INCLUDE_DIR} ${CMAKE_BINARY_DIR} )
LINK_DIRECTORIES( ${Boost_LIBRARY_DIRS} )
message(STATUS "Boost LIB DIR = "${Boost_LIBRARY_DIRS})
ADD_EXECUTABLE( tree ${GEOMETRIC_SRCS} ${GEOMETRIC_MOC_SRCS} ${GEOMETRIC_RC_SRCS} ${GEOMETRIC_UI_HDRS} )

SET (LIBS ${QT_LIBRARIES} ${Boost_LIBRARIES}) 
IF(${UNIX})
	SET(LIBS ${LIBS} lapack)
	message(STATUS "UNIX system, add lapack")
ENDIF(${UNIX})

TARGET_LINK_LIBRARIES( tree 
  ${LIBS}
)
